package com.sdry.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sdry.system.entity.SysPosition;
import org.apache.ibatis.annotations.Update;

/**
 * @program: info_sdry
 * @description: 岗位信息
 * @author: cb
 * @create: 2020-02-18 11:48
 **/
public interface PositionMapper extends BaseMapper<SysPosition> {

    /**
     * 删除
     * @param postId
     * @return
     */
    @Update("update sys_position set del_flag = '1' where post_id = #{postId}")
    Integer deletePosition(Long postId);
}
